package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2023-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sto_back")
@ApiModel(value = "StoBack对象", description = "")
public class StoBack implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("退货单号")
    @TableId(value = "back_id", type = IdType.INPUT)
    private String backId;

    @ApiModelProperty("退货申请时间")
    private Timestamp backApplyTime;

    @ApiModelProperty("退货确认时间")
    private Timestamp backPassTime;

    @ApiModelProperty("发货单号")
    private String expId;

    @ApiModelProperty("发货时间")
    private Timestamp expTime;

    @ApiModelProperty("退货类型")
    private String backType;

    @ApiModelProperty("订单ID")
    private String orderIds;

    @ApiModelProperty("发货仓库")
    private String shipperStoId;

    @ApiModelProperty("发货人姓名")
    private String shipperName;

    @ApiModelProperty("发货人电话")
    private String shipperPhone;

    @ApiModelProperty("收货仓库")
    private String consigneeStoId;

    @ApiModelProperty("收货人姓名")
    private String consigneeName;

    @ApiModelProperty("收货人电话")
    private String consigneePhone;

    @ApiModelProperty("收货地址")
    private String deliveryAddress;

    @ApiModelProperty("退货单")
    private String backImages;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("设备信息")
    private String deviceInfo;

    @ApiModelProperty("创建时间（建仓时间）")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
